package com.yty.system.test;

/**
 *
 * 模拟电影院卖票
 *
 */
public class ThreadDemo {

	public static void main(String[] args) throws InterruptedException {
		Ticket t = new Ticket();
		//创建9个窗口
		Thread t1 = new Thread(t, "窗口1");
//		Thread t2 = new Thread(t, "窗口2");
//		Thread t3 = new Thread(t, "窗口3");
//		Thread t4 = new Thread(t, "窗口4");

		t1.start();
//		t2.start();
//		t3.start();
//		t4.start();

//		t1.join();
//		t2.join();
//		t3.join();
//		t4.join();

	}



}
